package com.halflife.comeElectricity.basic.ProductType;

import com.halflife.comeElectricity.basic.ProductType.ProductType;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ProductTypeRepository {
    int deleteByPrimaryKey(Integer id);

    int insert(ProductType record);

    int insertSelective(ProductType record);

    ProductType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProductType record);

    int updateByPrimaryKey(ProductType record);

    /**
     * 查询所有活动页面
     * @param
     * @return
     */
    List<ProductType> selectListByParam(Map<String, Object> queryParam);
    List<ProductType> selectListByPage(Map<String, Object> queryParam);

    /**
     *  查询活动数量
     * @param
     * @return
     */
    int selectCountByPage(Map<String, Object> queryParam);
}